package com.xman.action;

import com.xman.common.comimpl.Result;
import com.xman.vo.Demo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * demo
 */
@RestController
@RequestMapping(value = "/demo")
public class DemoController {
    /**
     * 测试valideate
     * @return
     */
    @RequestMapping(value = "/validation/get", method = RequestMethod.GET)
    public Demo validateGet(@Valid Demo demo) {
        return demo;
    }
}
